package com.nervenets.shopping.controller.order.params;

import com.nervenets.general.web.params.Params;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Positive;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class BonusStatisticsParams implements Params {
    @ApiModelProperty(value = "年份", required = true)
    @Positive
    @Min(value = 2021)
    private int year;
    @ApiModelProperty(value = "年份第几周", required = true)
    @Positive
    @Min(value = 1)
    @Max(value = 52)
    private int week;
    @ApiModelProperty(value = "开始时间", required = true)
    @Positive
    private long startTime;
    @ApiModelProperty(value = "结束时间", required = true)
    @Positive
    private long endTime;
}
